home *** CD-ROM | disk | FTP | other *** search
/ Artworks - Keep it Simple 2 / Artworks - Keep it Simple 2.iso / az / launch.dxr / 00004_moviescript.ls < prev    next >
Encoding:
Text File  |  1997-07-04  |  3.6 KB  |  155 lines

  1. on startMovie
  2.   global hiRes, winver, modal, myDrive, j2736d2937m2382, gVoid
  3.   set textfile to "r53s.txt"
  4.   set myDrive to CheckDrive(textfile)
  5.   set j2736d2937m2382 to "Y7729J3338J3942"
  6.   loadMasterApp()
  7.   set j2736d2937m2382 to gVoid
  8.   set modal to 0
  9.   set winversion to 95
  10.   set MonitorRect to getAt(the deskTopRectList, 1)
  11.   set ScreenWidth to getAt(MonitorRect, 3)
  12.   if ScreenWidth > 640 then
  13.     set hiRes to 1
  14.   else
  15.     set hiRes to 0
  16.   end if
  17.   if hiRes = 0 then
  18.     go("menus")
  19.   else
  20.     go("menub")
  21.   end if
  22. end
  23.  
  24. on CheckDrive weirdfil
  25.   repeat with i = 67 to 90
  26.     set drive to numToChar(i)
  27.     set myThisPath to string(drive & ":\" & weirdfil)
  28.     set myFile to FileIO(mnew, "read", myThisPath)
  29.     if objectp(myFile) then
  30.       myFile(mdispose)
  31.       return drive & ":"
  32.       exit
  33.     end if
  34.   end repeat
  35.   alert(" CheckDrive error")
  36. end
  37.  
  38. on doca
  39.   global modal, winver, myDrive
  40.   nicekillApp("notepad", "notepad")
  41.   if modal = 0 then
  42.     if winver = "95" then
  43.       open(myDrive & "\az\doca95.exe")
  44.       repeat while not bringToFront()
  45.         nothing()
  46.       end repeat
  47.     else
  48.       open(myDrive & "\az\doca31.exe")
  49.     end if
  50.   end if
  51. end
  52.  
  53. on dokudo
  54.   global modal, winver, myDrive
  55.   nicekillApp("notepad", "notepad")
  56.   alert("After installing the KUDO Catalog,  you should finish the installation and re-start your computer.")
  57.   open(myDrive & "\startup")
  58.   quit()
  59. end
  60.  
  61. on doproduct
  62.   global winver, myDrive, modal
  63.   nicekillApp("notepad", "notepad")
  64.   open(myDrive & "Az\KIS_Desc.txt", "notepad.exe")
  65. end
  66.  
  67. on doaztech
  68.   global winver, myDrive, modal
  69.   nicekillApp("notepad", "notepad")
  70.   if modal = 0 then
  71.     open(myDrive & "Az\corpinfo.txt", "notepad.exe")
  72.   end if
  73. end
  74.  
  75. on doexit
  76.   global modal
  77.   nicekillApp("notepad", "notepad")
  78.   if modal = 0 then
  79.     quit()
  80.   end if
  81. end
  82.  
  83. on buttonClicked
  84.   set spriteNum to the clickOn
  85.   set upNum to the memberNum of sprite spriteNum
  86.   set upName to the name of member upNum
  87.   set downName to upName & "D"
  88.   set downNum to the number of member downName
  89.   set the memberNum of sprite spriteNum to downNum
  90.   updateStage()
  91.   repeat while the mouseDown
  92.     if rollOver(spriteNum) then
  93.       set the memberNum of sprite spriteNum to downNum
  94.     else
  95.       set the memberNum of sprite spriteNum to upNum
  96.     end if
  97.     updateStage()
  98.   end repeat
  99.   if the memberNum of sprite spriteNum = downNum then
  100.     puppetSound("SwitchP2")
  101.     updateStage()
  102.     return 1
  103.   end if
  104.   return 0
  105. end
  106.  
  107. on bringToFront
  108.   global gMasterAppObject
  109.   if not loadMasterApp() then
  110.     alert("No object")
  111.     return 0
  112.   end if
  113.   set tl to gMasterAppObject(mGetTaskList)
  114.   if tl = EMPTY then
  115.     return 0
  116.   end if
  117.   pushDelim(",")
  118.   set tllines to the number of lines in tl
  119.   set tTaskName to EMPTY
  120.   set taskName to EMPTY
  121.   repeat with i = 1 to tllines
  122.     set theTaskLine to line i of tl
  123.     set tTaskName to item 1 of theTaskLine
  124.     if tTaskName contains "install" then
  125.       set taskName to tTaskName
  126.       set theTask to integer(item 2 of theTaskLine)
  127.       exit repeat
  128.     end if
  129.   end repeat
  130.   if taskName = EMPTY then
  131.     return 0
  132.   end if
  133.   set wl to gMasterAppObject(mGetTaskWindowList, theTask)
  134.   if wl = "EMTPY" then
  135.     popDelim()
  136.     return 0
  137.   end if
  138.   set wllines to the number of lines in wl
  139.   set targetWindows to 0
  140.   repeat with j = 1 to wllines
  141.     set theWindowLine to line j of wl
  142.     set wlItems to the number of items in theWindowLine
  143.     if item 1 of theWindowLine = EMPTY then
  144.       next repeat
  145.     end if
  146.     if item wlItems of theWindowLine <> EMPTY then
  147.       set targetWindows to targetWindows + 1
  148.       set theWindow to integer(item wlItems - 3 of theWindowLine)
  149.       gMasterAppObject(mWindowToFront, theWindow)
  150.       exit repeat
  151.     end if
  152.   end repeat
  153.   return 1
  154. end
  155.